package org.jvending.provisioning.stocking.par.impl;

public class CopyrightTypeDriver implements org.apache.ws.jaxme.impl.JMSAXDriver {
  public org.xml.sax.helpers.AttributesImpl getAttributes(org.apache.ws.jaxme.impl.JMSAXDriverController pController, java.lang.Object pObject) throws org.xml.sax.SAXException {
    org.xml.sax.helpers.AttributesImpl _1 = new org.xml.sax.helpers.AttributesImpl();
    org.jvending.provisioning.stocking.par.CopyrightType _2 = (org.jvending.provisioning.stocking.par.CopyrightType) pObject;
    java.lang.String _3 = _2.getUri();
    if (_3 != null) {
      _1.addAttribute("", "uri", pController.getAttrQName(this, "", "uri"), "CDATA", _2.getUri());
    }
    java.lang.String _4 = _2.getLocale();
    if (_4 != null) {
      _1.addAttribute("", "locale", pController.getAttrQName(this, "", "locale"), "CDATA", _2.getLocale());
    }
    return _1;
  }

  public java.lang.String getPreferredPrefix(java.lang.String pURI) {
    return null;
  }

  public void marshalChilds(org.apache.ws.jaxme.impl.JMSAXDriverController pController, org.xml.sax.ContentHandler pHandler, java.lang.Object pObject) throws org.xml.sax.SAXException {
    org.jvending.provisioning.stocking.par.CopyrightType _1 = (org.jvending.provisioning.stocking.par.CopyrightType) pObject;
    java.lang.String _2 = _1.getValue();
    if (_2 != null  &&  _2.length() > 0) {
      char[] _3 = _2.toCharArray();
      pHandler.characters(_3, 0, _3.length);
    }
  }

}
